package com.tedu.demo5_1.controller;

import com.tedu.demo5_1.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {
    @Autowired
    private IUserService iUserService;
    public void login(){
        System.out.println("收到用户请求，要求登录");
        boolean flag = iUserService.login("张三", "212121");
        if(flag){
            System.out.println("Controller返回登陆成功");
        }else{
            System.out.println("Controller返回用户名或密码错误");
        }

    }

}
